/*
 * HttpUserStore.h
 *
 *  Created on: 2022-05-07
 *      Author: chuanjiang.zh
 */

#ifndef INCLUDE_HTTPUSERSTORE_H_
#define INCLUDE_HTTPUSERSTORE_H_

#include <string>

class HttpUser
{
public:
    int id;
    std::string username;
    std::string password;
    std::string sha;

    HttpUser():id()
    {
    }

    HttpUser(int uid, const std::string& u, const std::string& p):
        id(uid),
        username(u),
        password(p)
    {
    }
};

class HttpUserStore
{
public:
    virtual ~HttpUserStore() {}

    virtual bool findUser(const std::string& username, HttpUser& user) =0;
};


#endif /* INCLUDE_HTTPUSERSTORE_H_ */
